<?php 
namespace app\admin\validate;
use yzh52521\validate\Validate;

class CrontabValidate extends validate {


	protected $rule = [
		'name'=>['require'],
		'type'=>['require'],
		'rule'=>['require'],
	];

	protected $message = [
		'name.require'=>'任务名称不能为空',
		'type.require'=>'任务类型不能为空',
		'rule.require'=>'规则不能为空',
	];

	protected $scene  = [
		'add'=>['name','type','rule'],
		'update'=>['name','type','rule'],
	];



}

